#include<iostream>
const int N = 1000;
int a[N];
using namespace std;
class Node
{
public:
	int MIN;
	int MAX;
};Node DAY[N];
int main()
{
	int d, sumtime;cin >> d >> sumtime;
	for (int i = 1; i <= d; i++)
	{
		cin >> DAY[i].MIN >> DAY[i].MAX;
	}
	int sum = 0;
	for (int i = 1; i <= d; i++)
	{
		if (sum < sumtime)
		{

		}
	}
	return 0;
}